import request from "@/utils/request";

// 查询上门预约列表
export function listBizAppointment(query){
  return request({
    url: "/biz/bizAppointment/list",
    method: "get",
    params: query
  })
}

// 查询上门预约详细
export function getBizAppointment(id){
  return request({
    url: "/biz/bizAppointment/" + id,
    method: "get"
  })
}

// 新增上门预约
export function addBizAppointment(data){
  return request({
    url: "/biz/bizAppointment",
    method: "post",
    data: data
  })
}

// 修改上门预约
export function updateBizAppointment(data){
  return request({
    url: "/biz/bizAppointment",
    method: "put",
    data: data
  })
}

// 删除上门预约
export function delBizAppointment(id){
  return request({
    url: "/biz/bizAppointment/" + id,
    method: "delete"
  })
}

// 查询最大编号
export function findMaxSort(){
  return request({
    url: "/biz/bizAppointment/findMaxSort",
    method: "get"
  })
}
// 导出上门预约
export function exportBizAppointment (query){
  return request({
    url: "/biz/bizAppointment/export",
    method: "get",
    params: query
  })
}
